<div class="card bg-info mb-3" data-ng-show="(!curResult.error) && curResult.fields">
  <div class="card-title text-center"><b>{{curResult.title}}</b></div>
  <table class="table table-sm text-dark table-bordered">
    <tr>
      <th data-ng-repeat="field in curResult.fields">{{field}}</th>
    </tr>
    <tr data-ng-repeat="row in curResult.rows">
      <td data-ng-repeat="cell in row track by $index">{{cell}}</td>
    </tr>
  </table>
</div>
<div class="alert alert-success"
  data-ng-show="(!curResult.error) && curResult.fields.length == 0">
  rows_affected: {{curResult.rowsaffected}} last_id: {{curResult.insertid}}</div>
<div class="alert alert-danger" data-ng-show="curResult.error">
  {{curResult.title}}: {{curResult.error}}</div>
